package com.koron.order.overhaul.service;

import com.koron.order.overhaul.bean.entity.OverhaulOrderItemParamsBean;
import com.koron.order.overhaul.bean.query.OverhaulOrderItemParamsQuery;
import org.koron.ebs.mybatis.SessionFactory;

import java.util.List;

/**
 * (WOverhaulItemParams)表服务接口
 *
 * @author twcao
 * @since 2021-09-29 09:49:29
 */
public interface OverhaulOrderItemParamsService {

    OverhaulOrderItemParamsBean queryById(SessionFactory factory, String id);

    int saveOrUpdate(SessionFactory factory, List<OverhaulOrderItemParamsBean> wOverhaulItemParams);

    int saveOrUpdate(SessionFactory factory, OverhaulOrderItemParamsBean wOverhaulItemParam);

    int deleteByOrderId(SessionFactory factory, String orderId);

    int deleteByOrderIdAndItemId(SessionFactory factory, String orderId,String itemId);

    int hiddenByOrderId(SessionFactory factory, String orderId);

    List<OverhaulOrderItemParamsBean> queryList(SessionFactory factory, OverhaulOrderItemParamsQuery query);

}
